-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Fixes #12939] Add rootless support for geonode, cited on GNIP 101 (#12769) #12966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…removed some unnecessary code and packages, added rootless capabilities and some good practices)
…ed unnecessary entrypoint script, changed containerPort from (80,443) to (8080, 8443); Added new envVar: GEONODE_UID
@@ -105,9 +114,10 @@ services: | |||
condition: service_healthy | |||
|
|||
data-dir-conf: | |||
image: geonode/geoserver_data:2.24.3-latest | |||
image: geonode/geoserver_data:dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will not be removed by the other PR for getting rid of the geoserver_data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, when no longer needed
Made the following test:
|
ok, with @giohappy we made the following two changes: |
Original contribution by @cmotadev in #12940
Geonode Docker, now rootless!!!
Objectives
Summary of modifications
General
Specific
Next steps:
Post Scriptum
(PS1) Geonode Volumes: If run geonode as uid 0 (root), then stop, change to unprivileged user, and start, geonode will crash due permission issues. There is two things to do: 1) Remove all volumes before change UID and start or 2) mount all volumes in a dummy container and grant write privileges to root group.
(PS2) Setting GEONODE_UID=0, geonode will run as root, like all other versions.
Documentation on rootless best practices
Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.